package com.zr.inquiry.total.model.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zr.share.enums.InquiryStatusEnum;

import java.util.Date;

/**
 * @ClassName QueryPageInquiryVo
 * @Description TODO 分页查询询价清单参数类
 * @Author 马家奎
 * @Date 2019/11/14 19:44
 */

public class QueryPageInquiryResultVo {


    /**
     * requestForQuotationId :
     * legalPersonId :
     * createTime :
     * createStartTime :
     * createEndTime :
     * startTime :
     * endTime :
     * vendor :
     * inquiryStatus :
     * type :
     * pageIndex : 1
     * pageSize : 10
     */

    private String requestForQuotationId;
    private Integer legalPersonId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date createStartTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date createEndTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date endTime;
    private String legalPersonName;
    private String creatorName;
    private Integer inquiryStatus;
    private String inquiryStatusName;


    public void setInquiryStatusName() {
        this.inquiryStatusName = InquiryStatusEnum.getName(inquiryStatus);
    }

    public String getRequestForQuotationId() {
        return requestForQuotationId;
    }

    public void setRequestForQuotationId(String requestForQuotationId) {
        this.requestForQuotationId = requestForQuotationId;
    }

    public Integer getLegalPersonId() {
        return legalPersonId;
    }

    public void setLegalPersonId(Integer legalPersonId) {
        this.legalPersonId = legalPersonId;
    }

    public Date getCreateStartTime() {
        return createStartTime;
    }

    public void setCreateStartTime(Date createStartTime) {
        this.createStartTime = createStartTime;
    }

    public Date getCreateEndTime() {
        return createEndTime;
    }

    public void setCreateEndTime(Date createEndTime) {
        this.createEndTime = createEndTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getLegalPersonName() {
        return legalPersonName;
    }

    public void setLegalPersonName(String legalPersonName) {
        this.legalPersonName = legalPersonName;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public Integer getInquiryStatus() {
        return inquiryStatus;
    }

    public void setInquiryStatus(Integer inquiryStatus) {
        this.inquiryStatus = inquiryStatus;
        setInquiryStatusName();
    }

    public String getInquiryStatusName() {
        return inquiryStatusName;
    }

    public void setInquiryStatusName(String inquiryStatusName) {
        this.inquiryStatusName = inquiryStatusName;
    }
}
